#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

char[] gettime2() {
	
	char* timeString
	/* Assign to timeString the current time
	 * to be used as part of the pgm file name
	 */
	/* get seconds since the Epoch */
	time_t secs = time(0);

	/* convert to localtime */
	struct tm *local = localtime(&secs);

	/* and set the string */
	sprintf(timeString, "%02d%02d%02d.pgm", local->tm_hour, local->tm_min, local->tm_sec);
	printf("test\n");

return timeString;
}
